#ifndef __COMMUNICATE_H__
#define __COMMUNICATE_H__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <unistd.h>
#include <netdb.h>
#include <math.h>
#include <sys/time.h>
#include "common.h"
#include "util.h"

void send_msg_to_receivers(char * );
void send_msg_to_senders(char * );

void send_frame(char * char_buffer,enum SendFrame_DstType dst_type);


// void send_frame_to_receiver(Frame *frame, int recv_id);
// void send_msg_to_receivers(char *char_buffer, int recv_id, Sender *sender);
// void handle_ack(Sender *sender, int ack_num);

#endif
